package com.study.design.builder.base3;


public class ConcreteBuilder extends Builder {

    private Product product;

    public ConcreteBuilder() {
        this.product = new Product();
    }

    @Override
    Builder partA(String msg) {
        product.setPartA(msg);
        return this;
    }

    @Override
    Builder partB(String msg) {
        product.setPartB(msg);
        return this;
    }

    @Override
    Builder partC(String msg) {
        product.setPartC(msg);
        return this;
    }

    @Override
    Product build() {
        return product;

    }
}
